package com.vitalfit.model.dto;

import jakarta.validation.constraints.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class HandleDTO {
    private Integer id;
    @Min(value = 0, message = "Page index must not be negative")
    private Integer page;
    @Min(value = 1, message = "Page size must be at least 1")
    @Max(value = 100, message = "Page size cannot exceed 100")
    private Integer size;
    @Size(min = 4, max = 10, message = "Username must be between 4 and 10 characters")
    private String name;
    @Min(value = 3, message = "starRating must be at least 3")
    @Max(value = 5, message = "starRating cannot exceed 5")
    private Integer starRating;
    @Email(message = "Invalid email format")
    private String email;
    @Size(min = 6, message = "Password must be at least 6 characters")
    private String password;
    @NotBlank(message = "Usertype must not be empty")
    private String userType;
    @NotBlank(message = "Action must not be empty")
    private String action;
    private Integer age;
    private Double salary;
    private LocalDateTime startDate;

}
